package com.example.japinhands.dao

import androidx.room.Dao
import androidx.room.Insert
import androidx.room.Query
import com.example.japinhands.data.Sentence

@Dao
interface SentenceDao {
    @Insert
    fun insertSentence(sentence: Sentence): Long

    @Query("select * from sentence")
    fun getAllSentences(): List<Sentence>?

    @Query("delete from sentence")
    fun deleteSentences()

    @Query("select * from sentence where id = :id")
    fun querySentenceById(id: Long): Sentence?
}